package com.itsm.xkitsm.liferoot.life.weather;

import java.util.ArrayList;
import java.util.List;

import android.media.MediaPlayer;
import android.view.View;

public class Instance {

	private Instance() {

	}

	private static Instance intance = null;

	public static Instance getInstance() {
		if (intance == null) {
			intance = new Instance();
		}
		return intance;
	}

	private MediaPlayer mediaPlayer = null;

	public MediaPlayer getMediaPlayer() {
		if (mediaPlayer == null) {
			mediaPlayer = new MediaPlayer();
		}
		return mediaPlayer;
	}

	private List<View> viewData;

	public List<View> getViewData() {
		if (null == viewData) {
			viewData = new ArrayList<View>();
		}
		return viewData;
	}

	public int getViewDataCount() {
		return viewData.size();
	}

	private int currentCity = 0;

	public void setCurrentCity(int current) {
		currentCity = current;
	}

	public int getCurrentCity() {
		return currentCity;
	}

	private String strUrl;

	public void setStrUrl(String strUrl) {
		this.strUrl = strUrl;
	}

	public String getStrUrl() {
		return strUrl;
	}

	private String key;

	public void setKey(String key) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}

}
